package com.tansun.easycare.rule.decisiontree.model;
import java.io.Serializable;

import com.tansun.easycare.rule.common.model.BaseItem;
import com.tansun.easycare.rule.table.decisiontable.model.DecisionTableItem;

/**
 * 决策树节点上对应的规则信息
 * @author Lph
 *
 */
public class DecisionSubNodeItem extends BaseItem implements Serializable{
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	/**
	 * 操作符
	 */
	private String symbol;
	/**
	 * 对比值
	 */
	private String controlValue;
	/**
	 * 变量关系符
	 */
	private String leftOpt;
	/**
	 * 变量关系符
	 */
	private String rightOpt;
	/**
	 * true：输出失效
	 */
	private String disabled;
	
	private String formulaLabel;		// 公式中文
	
	private String formula;		// 公式
	
	private Integer seq;		// 序号
	
	public String getSymbol() {
		return symbol;
	}
	public void setSymbol(String symbol) {
		this.symbol = symbol;
	}
	public String getControlValue() {
		return controlValue;
	}
	public void setControlValue(String controlValue) {
		this.controlValue = controlValue;
	}
	public String getLeftOpt() {
		return leftOpt;
	}
	public void setLeftOpt(String leftOpt) {
		this.leftOpt = leftOpt;
	}
	public String getRightOpt() {
		return rightOpt;
	}
	public void setRightOpt(String rightOpt) {
		this.rightOpt = rightOpt;
	}
	
	public String getDisabled() {
		return disabled;
	}
	public void setDisabled(String disabled) {
		this.disabled = disabled;
	}
	public DecisionSubNodeItem(){}

	public DecisionSubNodeItem(DecisionTableItem tblItem){
		this.setClassName(tblItem.getClassName());
		this.setNameCN(tblItem.getNameCN());
		this.setNameEN(tblItem.getNameEN());
		this.setDataType(tblItem.getDataType());
		this.setDomain(tblItem.getDomain());
		this.setPosition(tblItem.getPosition());
	}
	public Integer getSeq() {
		return seq;
	}
	public void setSeq(Integer seq) {
		this.seq = seq;
	}
	public String getFormulaLabel() {
		return formulaLabel;
	}
	public void setFormulaLabel(String formulaLabel) {
		this.formulaLabel = formulaLabel;
	}
	public String getFormula() {
		return formula;
	}
	public void setFormula(String formula) {
		this.formula = formula;
	}
}
